﻿using Me.Framework.Json.DeConvert;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Me.Framework.InfoExchange
{
    public static class InfoExchangeJSON
    {
        public static string DeConvert<T>(T obj)
        {
            string json = new ObjToJson().ToJson<T>(obj);
            return json;
        }

        public static T DeConvert<T>(string json)
        {
            T obj = new JsonToObj().ToObj<T>(json);
            return obj;
        }
    }
}
